<?php

namespace App\Controllers\Auth;

use App\Models\Note;

class DashboardController extends Controller
{
    public function index()
    {
        $notes = Note::with('user')->orderByDesc('created_at')->get();

        echo view('pages.auth.home', [
            'notes' => $notes
        ]);
    }
}
